package cn.kgc.permanager01.service;

import cn.kgc.permanager01.pojo.Person;
import com.github.pagehelper.PageInfo;

/**
 * @author shkstart
 *
 */
public interface PersonService {
    //查询，并分页
    public PageInfo<Person> select(Integer pageNum, Integer pageSize);
    //新增
    public Integer add(Person person);
    //根据id查询
    public Person selectById(Integer id);
    //根据id修改
    public Integer update(Person person);
    //根据id删除
    public Integer delete(Integer id);
}
